package main

import (
	grpc2 "google.golang.org/grpc"
	"month5/common/consul"
	"month5/common/grpc"
	"month5/common/model/mysql"
	"month5/common/model/redis"
	"month5/common/nacos"
	"month5/service/appconfig"
	"month5/service/internal"
)

func main() {
	appconfig.Init()
	nacos.Nacos()
	consul.Consul()
	mysql.InitMysql()
	redis.InitRedis()

	nac := nacos.Config.Grpc
	grpc.RegisterGrpc(nac.Host, nac.Port, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
